package com.ruoyi.hydrology.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hydrology.mapper.YslcdssMapper;
import com.ruoyi.hydrology.domain.Yslcdss;
import com.ruoyi.hydrology.service.IYslcdssService;

/**
 * 涌水量实时数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-06
 */
@Service
public class YslcdssServiceImpl extends ServiceImpl<YslcdssMapper, Yslcdss> implements IYslcdssService //修改
{
    @Autowired
    private YslcdssMapper yslcdssMapper;

    /**
     * 查询涌水量实时数据
     * 
     * @param id 涌水量实时数据主键
     * @return 涌水量实时数据
     */
    @Override
    public Yslcdss selectYslcdssById(String id)
    {
        return yslcdssMapper.selectYslcdssById(id);
    }

    /**
     * 查询涌水量实时数据列表
     * 
     * @param yslcdss 涌水量实时数据
     * @return 涌水量实时数据
     */
    @Override
    public List<Yslcdss> selectYslcdssList(Yslcdss yslcdss)
    {
        return yslcdssMapper.selectYslcdssList(yslcdss);
    }

    /**
     * 新增涌水量实时数据
     * 
     * @param yslcdss 涌水量实时数据
     * @return 结果
     */
    @Override
    public int insertYslcdss(Yslcdss yslcdss)
    {
        return yslcdssMapper.insertYslcdss(yslcdss);
    }

    /**
     * 修改涌水量实时数据
     * 
     * @param yslcdss 涌水量实时数据
     * @return 结果
     */
    @Override
    public int updateYslcdss(Yslcdss yslcdss)
    {
        return yslcdssMapper.updateYslcdss(yslcdss);
    }

    /**
     * 批量删除涌水量实时数据
     * 
     * @param ids 需要删除的涌水量实时数据主键
     * @return 结果
     */
    @Override
    public int deleteYslcdssByIds(String[] ids)
    {
        return yslcdssMapper.deleteYslcdssByIds(ids);
    }

    /**
     * 删除涌水量实时数据信息
     * 
     * @param id 涌水量实时数据主键
     * @return 结果
     */
    @Override
    public int deleteYslcdssById(String id)
    {
        return yslcdssMapper.deleteYslcdssById(id);
    }

    @Override
    public Yslcdss selectYslcdssByCode(String pointCode) {
        return yslcdssMapper.selectYslcdssByCode(pointCode);
    }
}
